import $axios from './index.js'

// 询盘列表
function inquiryList(data) {
  const url = '/inquiry/index'
  return $axios.get(url, data)
}
// 询盘信息详情
function inquiryInfo(data) {
  const url = '/inquiry/read'
  return $axios.get(url, data)
}
// 询盘添加
function inquirySave(data) {
  const url = '/inquiry/save'
  return $axios.post(url, data)
}
// 询盘编辑
function inquiryUpdate(data) {
  const url = '/inquiry/update'
  return $axios.post(url, data)
}
// 询盘删除
function inquiryDelete(data) {
  const url = '/inquiry/delete'
  return $axios.post(url, data)
}

// 询盘分类列表
function inquiryCategoryList(data) {
  const url = '/inquiryCategory/index'
  return $axios.get(url, data)
}
// 询盘分类添加
function inquiryCategorySave(data) {
  const url = '/inquiryCategory/save'
  return $axios.post(url, data)
}
// 询盘分类编辑
function inquiryCategoryUpdate(data) {
  const url = '/inquiryCategory/update'
  return $axios.post(url, data)
}
// 询盘分类删除
function inquiryCategoryDelete(data) {
  const url = '/inquiryCategory/delete'
  return $axios.post(url, data)
}

// 询盘收件箱列表
function emailList(data) {
  const url = '/inquiryEmail/index'
  return $axios.get(url, data)
}
// 询盘收件箱添加
function emailSave(data) {
  const url = '/inquiryEmail/save'
  return $axios.post(url, data)
}
// 询盘收件箱详情
function emailInfo(data) {
  const url = '/inquiryEmail/read'
  return $axios.get(url, data)
}
// 询盘收件箱编辑
function emailUpdate(data) {
  const url = '/inquiryEmail/update'
  return $axios.post(url, data)
}
// 询盘收件箱删除
function emailDelete(data) {
  const url = '/inquiryEmail/delete'
  return $axios.post(url, data)
}
export default {
  inquiryList,
  inquirySave,
  inquiryUpdate,
  inquiryDelete,
  inquiryInfo,
  inquiryCategoryList,
  inquiryCategorySave,
  inquiryCategoryUpdate,
  inquiryCategoryDelete,
  emailList,
  emailSave,
  emailUpdate,
  emailDelete,
  emailInfo
}
